package com.RedRiver.hospitalsystem.personal_service.service.Form;

import com.RedRiver.hospitalsystem.personal_service.common.util.Md5Util;

public class AccountAndIdForm {

    /**
     * 用户id
     */
    private Integer accountId;

    /**
     * 用户名
     */
    private String accountName;

    /**
     * 密码
     */
    private String accountPassword;

    /**
     * 账号类型(0.工作人员，1.医生)
     */
    private Integer accountType;

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountPassword() {
        return Md5Util.getMi(accountPassword);
    }

    public void setAccountPassword(String accountPassword) {
        this.accountPassword = accountPassword;
    }

    public Integer getAccountType() {
        return accountType;
    }

    public void setAccountType(Integer accountType) {
        this.accountType = accountType;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    @Override
    public String toString() {
        return "AccountAndIdForm{" +
                "accountId=" + accountId +
                ", accountName='" + accountName + '\'' +
                ", accountPassword='" + accountPassword + '\'' +
                ", accountType=" + accountType +
                '}';
    }

    public AccountAndIdForm(Integer accountId, String accountName, String accountPassword, Integer accountType) {
        this.accountId = accountId;
        this.accountName = accountName;
        this.accountPassword = accountPassword;
        this.accountType = accountType;
    }

    public AccountAndIdForm() {
    }
}
